package com.pubinfo.passbook.common.model.dto.contract;

import com.pubinfo.passbook.common.entity.TContractPerformance;
import com.pubinfo.passbook.common.entity.TContractWbsProject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(value = "ContractAdoptParam", description = "合同认领参数")
public class ContractAdoptParam extends ContractIdParam {
    
    @ApiModelProperty("附件")
    private String attachment;
    
    @ApiModelProperty(hidden = true)
    public String roleCode;
    @ApiModelProperty("剩余可冲销额度")
    private BigDecimal residualWriteOff;
    
    @ApiModelProperty("已开票金额")
    private BigDecimal invoiceAmount;
    @ApiModelProperty("已冲减金额")
    private BigDecimal offsetAmount = BigDecimal.ZERO;
    @ApiModelProperty("外部审定金额")
    private BigDecimal approvedAmount = BigDecimal.ZERO;
    @ApiModelProperty("实际收款金额")
    private BigDecimal collectedAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "收款计划")
    private List<TContractPerformance> performances;
    @ApiModelProperty(value = "关联项目")
    private List<TContractWbsProject> wbsProjects = new ArrayList<>();
    
}
